<%# Requires: none -%>
<% object.all_resourcerefs.each do |ref| -%>
<%
  prop_ref = ref.resource_ref
  ref_underscore_name = Google::StringUtils.underscore(ref.resource)
-%>
def expand_variables_<%= ref_underscore_name -%>(template, data, ext_dat = {})
  Puppet::Type.type(:<%= prop_ref.out_name -%>).provider(:google)
              .expand_variables(template, data, ext_dat)
end

<% end -%>
